exports.toDateString = function(date) {
    return date.getFullYear() + "-" + format(date.getMonth() + 1) + "-" + format(date.getDay());
}

exports.toDateTimeString = function(date) {
    // new Date().getHours
    return `${date.getFullYear()}-${format(date.getMonth() + 1)}-${format(date.getDay())} ${date.getHours()}:${format(date.getMinutes())}:${format(date.getSeconds())}`;
}

exports.value = 1;

function format(str) {
    return str[1] ? str : "0" + str;
}